package com.zhixi.service;

import com.zhixi.common.R;
import com.zhixi.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;

/**
 * @author zhangzhixi
 * @description 针对表【user(用户信息)】的数据库操作Service
 * @createDate 2022-07-13 22:06:23
 */
public interface UserService extends IService<User> {

    /**
     * 发送验证码
     *
     * @param user    用户信息
     * @param session session
     * @return 验证码
     */
    R<String> senMsg(User user, HttpSession session);

    /**
     * 用户登录/注册
     *
     * @param user    用户信息
     * @param session session
     * @return 登录结果
     */
    R<User> login(User user, HttpSession session);
}
